package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.fallback.SecKillFeignServiceFalback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname ProductSeckillFeignService
 * @Description TODO
 * @Date 2021/10/26 10:57
 * @Author Anonymous
 */
@FeignClient(value = "gulimall-seckill",fallback = SecKillFeignServiceFalback.class)
public interface ProductSeckillFeignService {

    @RequestMapping(value = "/getSeckillSkuInfo/{skuId}")
    R getSeckillSkuInfo(@PathVariable("skuId") Long skuId);
}
